﻿using System;

namespace NExt.Configuration.Builder
{
    public class DelegatedObjectBuilder : IObjectBuilder
    {
        private readonly Func<Type, object> objectBuilder;

        public DelegatedObjectBuilder(Func<Type, object> objectBuilder)
        {
            this.objectBuilder = objectBuilder;
        }

        public Func<Type, object> Builder
        {
            get { return objectBuilder; }
        }
    }
}